package ch04.home;

class Exercise4_03 {
	public static void main(String[] args) {
		int sum = 0;
		int totalSum = 0;
		for (int i = 1; i <= 10; i++) {
			sum += i;
			totalSum += sum;
		}
		System.out.println("totalSum=" + totalSum); // totalSum=220
	} 
}
